#include <QApplication>
#include "qmlapplicationviewer.h"
#include "texteditproxy.h"

Q_DECL_EXPORT int main(int argc, char *argv[])
{
    QScopedPointer<QApplication> app(createApplication(argc, argv));

//    QmlApplicationViewer viewer;
//    viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
//    viewer.setMainQmlFile(QLatin1String("qml/qml-play-n/main.qml"));

    qmlRegisterType<TextEditProxy>("qtproxy", 1, 0, "QTextEdit");
    QDeclarativeView view;
    view.setSource(QUrl("qml/qml-play-n/main.qml"));


    view.show();

    return app->exec();
}
